package com.fank.spike.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author fanxk123
 * @since 2019-02-25
 */
@TableName("seckill_goods")
@Data
public class SeckillGoods extends Model<SeckillGoods> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;
    /**
     * 秒杀价
     */
    @TableField("seckil_price")
    private BigDecimal seckilPrice;
    /**
     * 秒杀数量
     */
    @TableField("stock_count")
    private Integer stockCount;
    @TableField("start_date")
    private Date startDate;
    @TableField("end_date")
    private Date endDate;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
